package Box2D.Dynamics.Joints
{
	public class b2WheelJoint extends b2Joint
	{
		public function b2WheelJoint(wrapper:Object=null)
		{
			super(wrapper);
		}
		/// Get the current joint translation, usually in meters.
		public function  GetJointTranslation():Number{
			return call('b2WheelJoint_GetJointTranslation')
		}
		
		/// Get the current joint translation speed, usually in meters per second.
		public function  GetJointSpeed():Number{
			return call('b2WheelJoint_GetJointSpeed')	
		}
		
		/// Is the joint motor enabled?
		public function  IsMotorEnabled():Boolean{
			return call('b2WheelJoint_IsMotorEnabled')
		}
		
		/// Enable/disable the joint motor.
		public function  EnableMotor(flag:Boolean):void{
			call('b2WheelJoint_EnableMotor',flag)
		}
		
		/// Set the motor speed, usually in radians per second.
		public function SetMotorSpeed(speed:Number):void{
			call('b2WheelJoint_SetMotorSpeed',speed)
		}
		
		/// Get the motor speed, usually in radians per second.
		public function GetMotorSpeed():Number{
			return call('b2WheelJoint_GetMotorSpeed')
		}
		
		/// Set/Get the maximum motor force, usually in N-m.
		public function SetMaxMotorTorque(torque:Number):void{
			call('b2WheelJoint_SetMaxMotorTorque',torque)
		}
		public function GetMaxMotorTorque():Number{
			return call('b2WheelJoint_GetMaxMotorTorque')
		}
		
		/// Get the current motor torque given the inverse time step, usually in N-m.
		public function GetMotorTorque(inv_dt:Number):Number{
			return call('b2WheelJoint_GetMotorTorque',inv_dt)
		}
		
		/// Set/Get the spring frequency in hertz. Setting the frequency to zero disables the spring.
		public function SetSpringFrequencyHz(hz:Number):void{
			call('b2WheelJoint_SetSpringFrequencyHz',hz)
		}
		public function GetSpringFrequencyHz():Number{
			return call('b2WheelJoint_GetSpringFrequencyHz')
		}
		
		/// Set/Get the spring damping ratio
		public function SetSpringDampingRatio(ratio:Number):void{
			call('b2WheelJoint_SetSpringDampingRatio',ratio)
		}
		public function GetSpringDampingRatio():Number{
			return call('b2WheelJoint_GetSpringDampingRatio')
		}
	}
}